 beginoutdoorscript;

 variables;

int i,j,k,r1,choice;

 body;

 beginstate INIT_STATE;

	break;

 beginstate START_STATE;

	break;

 beginstate 10;
	if (get_flag(202,0) == 0) {
		message_dialog("You've entered a more lush area of Faerengrove. The forests are in place so thick that you could easily get lost in them. It's strange that the people of Faerengrove have not taken advantage of this thick forest.","Then you hear it, silence. Despite the vegetation, there are hardly any animals, or they're silent. Something dangerous is enjoying a hike in nature.");
		set_flag(202,0,1);
}
break;

 beginstate 11;
	if (get_flag(202,6) == 0) {
		message_dialog("Suddenly you notice you've been cornered. Luckily not by undead, by rats, huge amount of giants rats. They squeak furiously at you and attack.","You are going to be their next meal.");
		set_flag(202,6,1);
		create_out_spec_enc(0);
}
 break;

 beginstate 12;
	message_dialog("That was, without doubt, the largest massacre you've been affiliated with. One last gaze at the field of battle reveals a scroll tube. Not bothering how the rats got a hold of it, you take it.","");
	reward_give(261);
 break;

 beginstate 20;
	message_dialog("A group of alarmingly fast undead have reached you!","");
break;

 beginstate 21;
	reset_dialog();
	add_dialog_str(0,"You spot another group of undead. You prepare yourself for their attack, then you prepare some more. The undead aren't attacking, they're just shambling past you showing no signs of interest in killing you.",0);
	add_dialog_str(1,"You could attack them, though.",0);
	add_dialog_choice(0,"Attack.");
	add_dialog_choice(1,"Ignore the undead.");
	choice = run_dialog(1);

	if (choice == 1) {
		message_dialog("Although the undead didn't attack you, they aren't hesitant to defend themselves.","");
		set_creature_type_level(42,6);
		set_creature_type_level(43,8);
}

	if (choice == 2) {
		message_dialog("You let the undead shamble away. Funny, up close they seemed much more poorly made than the rest of the undead.","");
		outdoor_enc_result(1);
}
break;

 beginstate 22;
	message_dialog("You strike each of the fallen corpse one more time, it never hurts to be sure. When you're confident the undead are, once more dead, you move on.","The forests are a bit safer now.");
	inc_flag(202,1,1);
break;

 beginstate 23;
	message_dialog("The undead lie in pieces around you, and frankly that was easy. Considering the effort you've put into destroying the other groups, this one was no trouble at all.","");
	set_creature_type_level(42,23);
	set_creature_type_level(43,24);
 break;

